@mixin borderRadius($v) {
  -ms-border-radius: &v;
  border-radius: $v;
}

/*4.1 按钮组
  name:     hui-btn-group
  example:
    <div class="hui-btn-group">
      <span class="hui-btn hui-btn-primary radius">左边按钮</span>
      <span class="hui-btn hui-btn-default radius">中间按钮</span>
      <span class="hui-btn hui-btn-default radius">中间按钮</span>
      <span class="hui-btn hui-btn-default radius">右边按钮</span>
    </div>
  explain:
*/

.hui-btn-group {
  font-size: 0;
  .hui-btn {
    margin-left: -1px;
  }
  .hui-btn:not(:first-child):not(:last-child):not(.hui-dropdown-toggle) {
    @include borderRadius(0);
  }
  >.hui-btn:first-child:not(:last-child):not(.hui-dropdown-toggle) {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }
  >.hui-btn:last-child:not(:first-child),
  >.hui-dropdown-toggle:not(:first-child) {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
  }
}